package com.wdl.modules.myhouse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.wdl.modules.myhouse.entity.UserGameEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 游戏用户关联表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-09-09
 */
@Mapper
public interface UserGameDao extends BaseMapper<UserGameEntity> {

    /**
     * 按照用户id 查找当前用户所拥有的动漫信息
     * @param userId
     * @return
     */
    @MapKey("id")
    Map<Integer,Object> getGamesByUserId(@Param("userId") Integer userId);




}